﻿@if (Request.IsAuthenticated)
{
    var teacherServices = new SCS.Business.TeacherServices();
    var teacher = teacherServices.GetAllTeacherNoUserID();
    var count = teacher.Count();
    if (count > 0)
    {
    <text>
    <li class="dropdown">
        <a href="#" class="hasnotifications dropdown-toggle" data-toggle='dropdown'><i class="fa fa-bell"></i><span class="badge">1</span></a>
        <ul class="dropdown-menu messages arrow">
            <li class="dd-header">
                <span>Bạn có 1 thông báo mới</span>
                <span></span>
            </li>
                                <div class="scrollthis" style="height:auto">

                <li>
                    <a href="../AccountManagement/CreateAccountTeacher">
                        <span class="msg">Có @count giáo viên chưa có tài khoản</span>
                        <span></span>
                    </a>
                </li>
                
            </div>
        </ul>
    </li>
    </text>
    }
    else
    {
    <text>
    <li class="dropdown">
        <a href="#" class="hasnotifications dropdown-toggle" data-toggle='dropdown'><i class="fa fa-bell"></i></a>
        <ul class="dropdown-menu notifications arrow">
            <li class="dd-header">
                <span>Bạn không có thông báo mới</span>
                <span></span>
            </li>
            </ul>
        </li>
        </text>
    }
}